package com.aiyi.education.entity.group;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import com.baomidou.mybatisplus.extension.activerecord.Model;
import lombok.AllArgsConstructor;
import lombok.Builder;
import lombok.Data;
import lombok.NoArgsConstructor;

import java.io.Serializable;
import java.util.Date;

/**
* <p>
*
企业积分表
* </p>
* <p>
* Created by aj1g Generator on 2020/04/29
* </p>
* <p>

//表 ks_enterprisescore 字段列表：
* </p>
* <p>
(ID , User_Name , User_ID , Score , Current_Score , Add_Date , Item_ID , Caozuo_Type , User_IP , Record_ID , Remark )
* </p>
* <p>

//对象 KsEnterprisescore 属性列表：
* </p>
* <p>
(id , userName , userId , score , currentScore , addDate , itemId , caozuoType , userIp , recordId , remark )
* </p>
* <p>

//表 ks_enterprisescore 字段中文解释：
* </p>
* <p>
(ID="企业积分ID/INTEGER" , User_Name="用户名/VARCHAR" , User_ID="用户ID/INTEGER" , Score="积分/INTEGER" , Current_Score="当前积分/INTEGER" , Add_Date="添加时间/TIMESTAMP" , Item_ID="模块/INTEGER" , Caozuo_Type="操作类型/INTEGER" , User_IP="用户IP/VARCHAR" , Record_ID="记录ID/INTEGER" , Remark="备注/LONGVARCHAR" )
* </p>
* <p>

//对象 KsEnterprisescore 属性解释：
* </p>
* <p>
(id="企业积分ID/Integer" , userName="用户名/String" , userId="用户ID/Integer" , score="积分/Integer" , currentScore="当前积分/Integer" , addDate="添加时间/Date" , itemId="模块/Integer" , caozuoType="操作类型/Integer" , userIp="用户IP/String" , recordId="记录ID/Integer" , remark="备注/String" )
* </p>
* <p>

//对象 KsEnterprisescore Json格式：
* </p>
* <p>
{"id":"企业积分ID/Integer" , "userName":"用户名/String" , "userId":"用户ID/Integer" , "score":"积分/Integer" , "currentScore":"当前积分/Integer" , "addDate":"添加时间/Date" , "itemId":"模块/Integer" , "caozuoType":"操作类型/Integer" , "userIp":"用户IP/String" , "recordId":"记录ID/Integer" , "remark":"备注/String" }
* </p>


*/


@Data
@Builder
@NoArgsConstructor
@AllArgsConstructor
@TableName("ks_enterprisescore")
public class KsEnterprisescore extends Model<KsEnterprisescore> implements Serializable {
    /**
     * 企业积分ID
     */
     @TableId(value="ID" ,type = IdType.INPUT)
    private Integer id;

    /**
     * 用户名
     */
     @TableField("User_Name")
    private String userName;

    /**
     * 用户ID
     */
     @TableField("User_ID") 
    private Integer userId;

    /**
     * 积分
     */
     @TableField("Score") 
    private Integer score;

    /**
     * 当前积分
     */
     @TableField("Current_Score") 
    private Integer currentScore;

    /**
     * 添加时间
     */
     @TableField("Add_Date") 
    private Date addDate;

    /**
     * 模块
     */
     @TableField("Item_ID") 
    private Integer itemId;

    /**
     * 操作类型
     */
     @TableField("Caozuo_Type") 
    private Integer caozuoType;

    /**
     * 用户IP
     */
     @TableField("User_IP") 
    private String userIp;

    /**
     * 记录ID
     */
     @TableField("Record_ID") 
    private Integer recordId;

    /**
     * 备注
     */
     @TableField("Remark") 
    private String remark;

    private static final long serialVersionUID = 1L;

    @Override
    public Serializable pkVal() {
         return this.id;
    }
}